<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<title>Black Admin v2 - Template Admin - Nice Theme</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<style type="text/css" media="all">
		@import url(css/style.css);
		img {behavior:url('js/iepngfix.htc') !important;}
	</style>	
	<script src="js/jquery.js" type="text/javascript"></script>
	<script src="js/jquery_ui.js" type="text/javascript"></script>
	<script src="js/wysiwyg.js" type="text/javascript"></script>
	<script src="js/functions.js" type="text/javascript"></script>

</head>
<body>
<div id="container"> <!-- Container -->
	<div id="header"> <!-- Header -->
		<div id="title">
			 Admin
			<span>Quản lý webside</span>
		</div>
	</div>	
	<div id="sidebar"> <!-- Sidebar -->
		<div class="sidebox">
			<span class="stitle">Navigation</span>
		  <div id="navigation"> <!-- Navigation begins here -->
        <div class="sidenav"><!-- Sidenav -->
          <div class="navhead_blank"><span><a href="#" title="">Trở về trang chủ</a></span></div>
          <div class="navhead"><span>Album</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="Taoalbum.php" title="">Tạo Album</a></li>
              <li><a href="album.php" title="">Quản lý Album</a></li>
            </ul>
          </div>
          <div class="navhead"><span>Bài hát</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="thembaihat.php" title="">Thêm bài hát</a></li>
              <li><a href="quanlybaihat.php" title="">Quản lý bài hát</a></li>
            </ul>
          </div>
          <div class="navhead"><span>Bình Luận</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="quanlycoment.php" title="">Quản lý Bình Luận</a></li>
            </ul>
          </div>
          <div class="navhead"><span>Nghệ sĩ</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="Themnghesi.php" title="">Thêm Nghệ sĩ</a></li>
              <li><a href="quanlynghesi.php" title="">Quản lý nghệ sĩ</a></li>
            </ul>
          </div>
          <div class="navhead"><span>Playlist</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="Taoplaylist.php" title="">Tạo Danh Sách Nhạc</a></li>
              <li><a href="Quanlydanhsachnhac.php" title="">Quản lý danh sách nhạc</a></li>
            </ul>
          </div>
          <div class="navhead"><span>Thể Loại</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="Themtheloai.php" title="">Thêm thể loại</a></li>
              <li><a href="quanlytheloainhac.php" title="">Quản lý thể loại</a></li>
            </ul>
          </div>
          <div class="navhead"><span>User</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="quanlyuser.php" title="">Quản lý user</a></li>
            </ul>
          </div>
          <div class="navhead"><span>Album_music</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="Album_music.php" title="">Quản lý Album_music</a></li>
               <li><a href="ThemAlbum_music.php" title="">Thêm Album_music</a></li>
            </ul>
          </div>
          
          <div class="navhead"><span>Bài Hát_nghệ sĩ</span></div>
          <div class="subnav">
            <ul class="submenu">
              <li><a href="Music_nghesi.php" title="">Quản lý Bài Hát_nghệ sĩ</a></li>
              <li><a href="themMusic_nghesi.php" title="">Thêm Bài Hát_nghệ sĩ</a></li>
            </ul>
          </div>
          <div class="navhead"><span>Music_Playlist</span></div>
					<div class="subnav">
						<ul class="submenu">
							<li><a href="Baihat_Playlist.php" title="">Quản lý Music_playlist</a></li>
                            <li><a href="themMusic_playlist.php" title="">Thêm Music_playlist</a></li>
							
						</ul>
					</div>
        </div>
      </div> <!-- END Navigation -->
		</div>
		<div class="sidebox">
			<span class="stitle">Additional Panel</span>
			<div id="datepicker"></div>

		</div>
		
		
	</div>  <!-- END Sidebar -->
	<div id="main"> <!-- Main, right side content -->
		<div id="content"> <!-- Content begins here -->
				
                  
        <?php
			
			 $conn = mysql_connect("localhost", "root","123456") or die("Ket noi den MySQL that bai");
              mysql_select_db("mp3", $conn);
	
              if (isset($_POST['loai'] ) ) 
			  {
				  	$loai_ns= $_POST['loai']; 
					$nghe_danh= $_POST['nd']; 
					$ten_that = $_POST['tt']; 
					$ngay_sinh= $_POST['ns']; 
					$quoc_tich = $_POST['qt']; 
					$tieu_su= $_POST['ts']; 
					$pic1ns= $_POST['h1']; 
					$pic2ns= $_POST['h2']; 
					
				  	$qr = "call insertns
				  ( ".$loai_ns.",'".$nghe_danh."','". $ten_that."','". $ngay_sinh."', '".$quoc_tich."', '".$tieu_su."', '".$pic1ns."', '".$pic2ns."')";
				  mysql_query($qr);
				  echo "Thêm thành công";
				
				echo "<a href='quanlynghesi.php'>Trở lại trang quan ly nghe si</a>";
				  mysql_close($conn);
			  }
		
		 ?>
				<form method="post" action="Themnghesi.php"><!-- Form -->
				<!-- Fieldset -->
				<fieldset><legend>Thêm Ngệ sĩ</legend>
					
					<div class="input_field">
                    	<label for="sf">Loại</label>
						<input class="smallfield" name="loai" type="text" value="<?= $nghe_si['loains'] ?>" />
					</div>
					<div class="input_field">
						<label for="lf">Nghệ Danh</label>
 						<input class="bigfield" name="nd" type="text" value="<?=$nghe_si['nghedanh'] ?>" /> 
					</div>
                    <div class="input_field">
						<label for="lf">Tên Thật</label>
 						<input class="bigfield" name="tthat" type="text" value="<?=$nghe_si['tenthat'] ?>" /> 
                    <div class="input_field">
						<label for="lf">Ngày Sinh</label>
 						<input class="bigfield" name="ngsinh" type="text" value="<?=$nghe_si['ngaysinh'] ?>" /> 
                    <div class="input_field">
						<label for="lf">Quốc Tịch</label>
 						<input class="bigfield" name="quoc_tich" type="text" value="<?=$nghe_si['quoctich'] ?>" /> 
                     </div>
                     <div class="input_field">
						<label for="lf">Tiểu Sử</label>
 						<textarea class="bigfield" name="tieu_su" type="text" value="<?=$nghe_si['tieusu'] ?>" ></textarea> 
                     </div>
                      <div class="input_field">
						<label for="lf">hình 1</label>
 						<input class="bigfield" name="h1" type="file" value="<?=$nghe_si['pic1'] ?>" /> 
                     </div>
                      <div class="input_field">
						<label for="lf">hình 2</label>
 						<input class="bigfield" name="h2" type="file" value="<?= $nghesi['pic2'] ?>" /> 
                     </div>
                      <div class="input_field">
 						<input class="tao" name="lf" type="submit" value="Sửa" /> 
                     </div>
				</fieldset>
				<!-- End of fieldset -->
			</form><!-- /Form -->
				<div class="clear"><!-- --></div>

			<!-- The paginator -->
			
	</div> 	
		<div id="footer"> 
			<p>Copyright <a rel="dofollow" target="_blank" href="http://nicetheme.net/">Nice Theme</a> 2009. All rights reserved.</p>
		</div>	
</div> <!-- END Container -->
</body>
</html>